<?xml version="1.0" encoding="UTF-8"?>
<!--
    Document   : WelcomePage.jsp
    Created on : Enero 15 de 2010
    Author     : Alejo Gamboa B.
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <html id="outputHtml1">
            <head id="outputHead1">
                <ice:outputStyle href="./xmlhttp/css/xp/xp.css" id="outputStyle2"/>
                <ice:outputStyle href="./resources/stylesheet.css" id="outputStyle1"/>
                <script src="resources/js/dropdown.js" language="javascript"/>
            </head>
            <body id="outputBody1" style="-rave-layout: grid">
                <ice:form id="form1" styleClass="bodyCenterAlign">
                    <jsp:directive.include file="fragments/HeaderFragment.jspf"/>
                    <jsp:directive.include file="fragments/MenuFragment.jspf"/>
                    <ice:panelLayout styleClass="mainPL">
                        <ice:messages errorClass="errorMessage" fatalClass="fatalMessage" id="messages1" infoClass="infoMessage" showSummary="true" warnClass="warnMessage"/>
                        <br/>
                        <ice:outputLabel styleClass="titlePageAdmin" value="Ingreso Automóvil"/>
                        <br/>
                        <br/>
                        <ice:panelGrid width="100%" columns="2">
                            <ice:panelGrid width="50%" columns="2">
                                <ice:outputLabel styleClass="nameLbl" value="Datos Automovil"/>
                                <br/><br/><br/>
                                <ice:outputLabel styleClass="lb1" value="Linea"/>
                                <ice:selectOneMenu partialSubmit="true" value="#{IngresoAutoPage.linea}" binding="#{IngresoAutoPage.lineaMenu}">
                                    <f:selectItem itemValue="-1" itemLabel="Selecciona..." />
                                    <f:selectItems value="#{IngresoAutoPage.lineaItems}"/>
                                </ice:selectOneMenu>
                                <ice:outputLabel styleClass="lb1" value="Placa" />
                                <ice:inputText maxlength="6" required="true" size="7" value="#{IngresoAutoPage.placa}">
                                    <f:attribute name="label" value="Placa"/>
                                   </ice:inputText>

                                <ice:outputLabel styleClass="lb1" value="Modelo" />
                                <ice:selectOneMenu partialSubmit="true" value="#{IngresoAutoPage.modelo}">
                                    <f:selectItem itemLabel="2012" itemValue="2012" />
                                    <f:selectItem itemLabel="2011" itemValue="2011" />
                                    <f:selectItem itemLabel="2010" itemValue="2010" />
                                    <f:selectItem itemLabel="2009" itemValue="2009" />
                                    <f:selectItem itemLabel="2008" itemValue="2008" />
                                    <f:selectItem itemLabel="2007" itemValue="2007" />
                                    <f:selectItem itemLabel="2006" itemValue="2006" />
                                    <f:selectItem itemLabel="2005" itemValue="2005" />
                                    <f:selectItem itemLabel="2004" itemValue="2004" />
                                    <f:selectItem itemLabel="2003" itemValue="2003" />
                                    <f:selectItem itemLabel="2002" itemValue="2002" />
                                    <f:selectItem itemLabel="2001" itemValue="2001" />
                                    <f:selectItem itemLabel="2000" itemValue="2000" />
                                </ice:selectOneMenu>
                            </ice:panelGrid>

                            <ice:panelGrid width="50%" columns="2">
                                <ice:outputLabel styleClass="nameLbl" value="Datos Cliente"/>
                                <br/><br/><br/>
                                <ice:outputLabel styleClass="lb1" value="Nombre"/>
                                <ice:inputText required="true" value="#{IngresoAutoPage.nombre}">
                                     <f:attribute name="label" value="Nombre"/>
                                   </ice:inputText>
                                <ice:outputLabel styleClass="lb1" value="Apellido" />
                                <ice:inputText required="true" value="#{IngresoAutoPage.apellido}">
                                     <f:attribute name="label" value="Apellido"/>
                                   </ice:inputText>
                                <ice:outputLabel styleClass="lb1" value="Nro. Identificación" />
                                <ice:inputText required="true" maxlength="11" value="#{IngresoAutoPage.identificacion}">
                                     <f:attribute name="label" value="Nro. Identificación"/>
                                   </ice:inputText>
                            </ice:panelGrid>
                        </ice:panelGrid>
                        <br/>
                        <ice:commandButton action="#{IngresoAutoPage.guardar}" value="Guardar"/>
                    </ice:panelLayout>
                </ice:form>
            </body>
        </html>
    </f:view>
</jsp:root>
